<?php
$featureName = '已买景点';
$permission = 'member';
?>
@extends('admin.tableLayout')
@section('title',$featureName.'列表')
@section('barName',$featureName.'列表')
@section('quote')
@endsection
@section('tableRender')
    <script type="text/html" id="spot">
        @{{ d.scene.title }}
    </script>
    <script>
        layui.use(['table','jquery','form'], function(){
            var table = layui.table;
            var $=layui.jquery;
            var form=layui.form;
            var category_id=$("#category_id").val();
            var render=table.render({
                elem:"#table",
                page:true,
                id:'idTest',
                height:400,
                cols:  [[ //标题栏
                    {field: 'scene', title: '景点名称', width: 150,templet:'#spot'},
                    {field: 'spot', title: '费用({{config('wallet.unit.wallet_spots')}})', width: 150},
                    {field: 'desc', title: '描述', width: 200},
                    {field: 'created_at', title: '购买时间', width: 200,sort: true},
                    //这里的toolbar值是模板元素的选择器
                ]],
                data:{!! json_encode($list) !!}
            });
        });
    </script>
@endsection

